package com.hardydou.system.controller;

import com.hardydou.common.controller.BaseController;
import com.hardydou.common.result.Code;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author ：hardy
 * @description：系统状态码
 * @date ：Created in 2020/6/29
 * @Copyright ：Hardydou.com
 */
@Controller
@RequestMapping("/system")
@ApiIgnore
public class CodeController extends BaseController {

    @GetMapping("/code")
    public String code(Model model) {
        model.addAttribute("codes", Code.values());
        return "code/list";
    }


}
